package main

import "fmt"

type Student struct {
	id int
	age int
	sex byte
	name string
}

func main() {
	// 结构体指针变量初始化
	var s *Student = &Student{1,10,'m',"stang" }
	fmt.Println(*s)

	// 结构体指针变量初始化
	s2 := &Student{id:2, name:"Mr wange"}
	fmt.Println(s2)
	fmt.Println(*s2)
}
